package com.aob.service.impl;

import com.aob.pojo.Adminmanager;
import com.aob.mapper.AdminmanagerMapper;
import com.aob.service.AdminmanagerService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Desc: 接口实现类
 * @Author: ChenWenJie
 */
@Service("adminmanagerService")
public class AdminmanagerServiceImpl implements AdminmanagerService {

    @Autowired(required = false)
    private AdminmanagerMapper adminmanagerMapper;

    public AdminmanagerMapper getAdminmanagerMapper() {
        return adminmanagerMapper;
    }

    public void setAdminmanagerMapper(AdminmanagerMapper adminmanagerMapper) {
        this.adminmanagerMapper = adminmanagerMapper;
    }

    @Override
    public int add(Adminmanager adminmanager) {
        return adminmanagerMapper.add(adminmanager);
    }

    @Override
    public int deleteAdminmanagerById(Integer id) {
        return adminmanagerMapper.deleteAdminmanagerById(id);
    }

    @Override
    public int update(Adminmanager adminmanager) {
        return adminmanagerMapper.update(adminmanager);
    }

    @Override
    public int getAdminmanagerCount(Map<String, Object> map) {
        return adminmanagerMapper.getAdminmanagerCount(map);
    }

    @Override
    public Adminmanager getAdminmanagerById(Integer id) {
        return adminmanagerMapper.getAdminmanagerById(id);
    }

    @Override
    public List<Adminmanager> getAdminmanagerListByObj(Adminmanager adminmanager) {
        return adminmanagerMapper.getAdminmanagerListByObj(adminmanager);
    }

    @Override
    public List<Adminmanager> getAdminmanagerPageByMap(Map<String, Object> map) {
        return adminmanagerMapper.getAdminmanagerPageByMap(map);
    }

    @Override
    public Adminmanager getAdminmanagerByMap(Map<String, Object> map) {
        return adminmanagerMapper.getAdminmanagerByMap(map);
    }
}
